package com.itheima.homework4;

import java.util.HashMap;
import java.util.HashSet;

public class ComeFrom {
    public static void main(String[] args) {
        HashMap<Student,String> hm = new HashMap<>();
        Student s1 = new Student("小红",20);
        Student s2 = new Student("小黄",22);
        Student s3 = new Student("小白",25);
        Student s4 = new Student("小蓝",23);
        Student s5 = new Student("小绿",21);
        hm.put(s1,"北京海淀");
        hm.put(s2,"北京朝阳");
        hm.put(s3,"北京海淀");
        hm.put(s4,"北京顺义");
        hm.put(s5,"北京昌平");

        hm.forEach((k,v)-> System.out.println(k+"--"+v));
    }
}
